package com.terabits.smartriver.meta.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * Created by Yin on 2019/3/7
 */
public class RegionVO {
    private String value;

    private String label;

    private Integer disabled;

    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<RegionVO> children;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getDisabled() {
        if (disabled == null) {
            return 0;
        }
        return disabled;
    }

    public void setDisabled(Integer disabled) {
        this.disabled = disabled;
    }

    public List<RegionVO> getChildren() {
        return children;
    }

    public void setChildren(List<RegionVO> children) {
        this.children = children;
    }
}
